<template>
	<view class="suggestion-page">
		<view class="input-section">
			<textarea class="suggestion-input" v-model="suggestion" placeholder="请输入您的建议"></textarea>
		</view>
		<button class="submit-button" @click="submitSuggestion">提交建议</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				suggestion: ''
			};
		},
		methods: {
			submitSuggestion() {
				if (this.suggestion.trim() === '') {
					uni.showToast({
						title: '请输入建议内容',
						icon: 'none'
					});
					return;
				}
				// 这里可以添加提交建议的逻辑，比如发送到服务器
				console.log('提交建议:', this.suggestion);
				uni.showToast({
					title: '建议已提交',
					icon: 'success'
				});
				this.suggestion = ''; // 清空输入框
			}
		}
	};
</script>

<style scoped>
	.suggestion-page {
		padding: 20rpx;
	}

	.input-section {
		margin-bottom: 20rpx;
	}

	.suggestion-input {
		width: 100%;
		height: 200rpx;
		padding: 10rpx;
		border: 1px solid #ccc;
		border-radius: 10rpx;
		box-sizing: border-box;
	}

	.submit-button {
		width: 100%;
		padding: 20rpx;
		background-color: #007aff;
		color: #fff;
		border-radius: 10rpx;
		font-size: 28rpx;
		font-weight: bold;
	}
</style>